import {connect} from 'react-redux';
import * as actions from './actions';
import * as actionTypes from './consts';
import Component from './components/Component';

const {key} = actionTypes.key;
const mapStateToProps = state => ({
  key: state.testcase.get(key),
});

const mapDispatchToProps = {
  action: actions.action
};

export default connect(mapStateToProps, mapDispatchToProps)(Component);
